<html>
    <head>
        <title>法律法规文章列表</title>
        <style type="text/css">
            body{padding: 0 auto;margin:0;}
            .container{width:100%;}
            .head{width:80%;margin-top: 40px;margin-left: 100px;text-align: center;}
            .head label{width:20%;font-weight: bold; font-size: 24px;}
            .content{width:80%;margin-left: 160px;}
            .content ul{list-style:none; width:86%;}
            .number{display: inline-block;width: 24px;font-size: 20px;}
            .title{display: inline-block;width:60%;}
            .content li{margin: 10px 0px;height: 36px;}
            .content li p{display: inline-block;font-size: 24px;}
            .time{width:30px;margin-left: 10px;}
            .link{width:60px;background: rgb(51,133,255);margin-left: 20px;text-decoration:none;border: 1px;color: white;border-radius: 3px;height:32px;display: inline-block;text-align: center;vertical-align: middle;padding: 2px;}
        </style>
    </head>
    <body>
        <div class="container">
            <div class="head"><label>法律法规文章列表</label></div>
            <div class="content">
                <ul>
                    @foreach($laws as $key=>$law)
                    <li>
                        <span class="number">{{$key+1}}</span>
                        <p class="title">{{$law['title']}}</p>
                        <span class="time">{{date('Y-m-d H:i:s', $law['updateTime'])}}</span>
                        <a href="{{route('law_update', array('id'=>$law['id']))}}" class="link">编辑</a>
                    </li>
                    @endforeach
                </ul>
            </div>
            
        </div>
    </body>
</html>